<div class="col-sm-8 userhome-index-left">
	<h2>最新博文</h2>
	<% for(var i=0; i< article.length; i++){ %>
		<div class="col-sm-6 col-md-4 " >
			<div class="userhome-allbody" >
				<a href="/articles/read/<%-article[i]._id%>" >
					<div style="background-image:url(/article/<%-article[i].img%>)" class="userhome-body-img">
						<div class="userhome-body-imghov" style="font-size:36px;">
							<span class="glyphicon glyphicon-book"></span>
						</div>
					</div>
				</a>
				<div class="userhome-title hidden-xs">
					<a class="userhome-atitle" href="/articles/read/<%-article[i]._id%>" ><%-article[i].name%></a>
				</div>
				<div class="userhome-title visible-xs">
					<a class="userhome-atitle" style="font-size:32px;line-height:32px;" href="/articles/read/<%-article[i]._id%>" ><%-article[i].name%></a>
				</div>
				<p class="userhome-uptime"><span class="glyphicon glyphicon-time"></span><%= (new Date(article[i].upTime).getFullYear()+"-" +(new Date(article[i].upTime).getMonth()+1))+"-"+(new Date(article[i].upTime).getDate())
				%></p>
			</div>
		</div>
	<%}%>
	<div class="col-md-12" style="margin:15px auto;">
		<a href="/userhome/<%- upUser._id %>/article" class="btn btn-sm btn-info active"> 更多>> </a>
	</div>
	<div class="container">
		<div class="row" >
		</div>
	</div>
	<h2 >最新视频</h2>
	<% for(var i=0; i< video.length; i++){ %>
		<div class="col-sm-6 col-md-4 " >
			<div class="userhome-allbody" >
				<a href="/video/av/<%-video[i]._id%>" >
					<div style="background-image:url(/video/<%-video[i].img%>);"  class="userhome-body-img">
						<div class="userhome-body-imghov" style="font-size:36px;">
							<span class="glyphicon glyphicon-play"></span>
						</div>
					</div>
				</a>
				<div class="userhome-title hidden-xs">
					<a class="userhome-atitle" href="/video/av/<%-video[i]._id%>" ><%-video[i].name%></a>
				</div>
				<div class="userhome-title visible-xs">
					<a class="userhome-atitle" style="font-size:32px;line-height:32px;" href="/video/av/<%-video[i]._id%>" ><%-video[i].name%></a>
				</div>
				<p class="userhome-uptime"><span class="glyphicon glyphicon-time"></span><%= (new Date(video[i].upTime).getFullYear()+"-" +(new Date(video[i].upTime).getMonth()+1))+"-"+(new Date(video[i].upTime).getDate())
				%></p>
			</div>
		</div>
	<%}%>
	<div class="col-md-12" style="margin-top:15px;">
		<a href="/userhome/<%- upUser._id %>/video" class="btn btn-sm btn-info active"> 更多>> </a>
	</div>
</div>

<div class="col-sm-4">
	<div class="col-sm-6 userhome-index-rigtop">
		<% if (upUser.Fans) {%>
		<h3>粉丝:
			<a href="/userhome/<%- upUser._id %>/fans"><%- upUser.Fans.length %></a>
		</h3>
		<%} else{%>
		<h3>粉丝:
			<a href="/userhome/<%- upUser._id %>/fans">0</a>
		</h3>
		<%}%>
	</div>
	<div class="col-sm-6 userhome-index-rigtop">
		<% if (upUser.keepAT ) {%>
		<p>收藏博客:
			<a href="/userhome/<%- upUser._id %>/keep"><%- upUser.keepAT.length %></a>
		</p>
		<%} else{%>
		<p>收藏博客:
			<a href="/userhome/<%- upUser._id %>/keep">0</a>
		</p>
		<%}%>
		<% if (upUser.keepAV ) {%>
		<p>收藏视频:
			<a href="/userhome/<%- upUser._id %>/keep"><%- upUser.keepAV.length %></a>
		</p>
		<%} else{%>
		<p>收藏视频:
			<a href="/userhome/<%- upUser._id %>/keep">0</a>
		</p>
		<%}%>
	</div>
	
	<h3 class="userhome-index-Notice">公告</h3>
	<% if(user.name == upUser.name) {%>
	<textarea class="col-sm-12 userhome-index-textarea"  maxlength="100" data-max="100" placeholder="编辑我的空间公告"><%- upUser.notice%></textarea>
	<%} else {%>
	<div  class="col-sm-12 userhome-index-textarea">
		<%- upUser.notice%>
	</div>
	<%}%>
</div>